
#define c10x6	1000000
#define c10x5	100000
#define c10x4	10000
#define c10x3	1000
#define c10x2	100

.MACRO _BCD_To_CHAR
	push r17
	push r16

	LDS R16, @0
	rcall BCD_To_CHAR
	STS (@1+0), R17
	STS (@1+1), R16
	
	pop r16
	pop r17

.ENDMACRO

.MACRO BinToASCII
// Pointer to Number
// low address is MSD
// High is LSD
	LDI XH, HIGH(@0)
	LDI XL, LOW(@0)
// Pointer to string
	LDI YH, HIGH(@1)
	LDI YL, LOW(@1)
	rcall Bin_To_ASCII
.ENDM

